<?php
/**
 * @author wangwei
 * 2010-8-28
 * 评论页面
 */
?>
<div id="comment-area">
<div id="comments" class="comments">
<?php if ( post_password_required() ) : ?>
	<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
</div><!-- #comments -->
</div><!-- #comment-area -->
<?php
		return;
	endif;
?>

<?php if ( have_comments() ) : ?>
			<h2 id="comments-title"><?php
			printf( _n( '1 评论', '%1$s 评论', get_comments_number(), 'bengshuo' ),
			number_format_i18n( get_comments_number() ) );
			?></h2>


			<ol class="commentlist">
				<?php
					wp_list_comments( array( 'callback' => 'twentyten_comment') );
				?>
			</ol>

			<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
			<div class="navigation">
				<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
			</div>
			<?php endif;?>
			
<?php else :
	if ( ! comments_open() ) :
?>
	<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
<?php endif; // end ! comments_open() ?>

<?php endif; // end have_comments() ?>

<?php comment_form(); ?>

</div><!-- #comments -->
</div><!-- #comment-area -->
